home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Table / Sources / Constant.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.1 KB  |  40 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Constant.h
  4. //    Release Version:    $ ODF 2 $ 
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef CONSTANT_H
  11. #define CONSTANT_H
  12.  
  13. #ifndef FWFXMATH_H
  14. #include "FWFxMath.h"
  15. #endif
  16.  
  17. // ----- Default number of cells -----
  18. const ODULong kMaxCols = 5;
  19. const ODULong kMaxRows = 5;
  20.  
  21. // ----- Default size of cell -----
  22. const FW_Fixed kDefaultCellWidth  = FW_IntToFixed(80);
  23. const FW_Fixed kDefaultCellHeight = FW_IntToFixed(80);
  24.  
  25. typedef short ETableLoc;
  26. const ETableLoc kTLNone = -1;
  27. const ETableLoc kTLCell = 0;
  28. const ETableLoc kTLLeftBorder = 1;
  29. const ETableLoc kTLRightBorder = 2;
  30. const ETableLoc kTLTopBorder = 4;
  31. const ETableLoc kTLBottomBorder = 8;
  32.  
  33. // ----- Hit-test constants -----
  34. const FW_Fixed kPenWidth  = FW_IntToFixed(1);
  35. const FW_Fixed kPenHeight = FW_IntToFixed(1);
  36.  
  37. const FW_Fixed kBorderWidth  = kPenWidth;
  38. const FW_Fixed kBorderHeight = kPenHeight;
  39.  
  40. #endif